<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
	// Get a db connection.
	$db = JFactory::getDbo();
	// Create a new query object.
	$query = $db->getQuery(true);
	@$uid =  JRequest::getVar('id','0');
	if(isset($uid)&&$uid!=0){
		// Select all records from the user profile table where key begins with "custom.".
		// Order it by the ordering field.
		$query->select('domain_register,domain_completed,domain_created,domain_email,domain_name,domain_purchase,domain_exprires,
						domain_manager,domain_register,domain_password');
		$query->from('#__user_profiles');
		$query->where('user_id='.$uid);
		// Reset the query using our newly populated query object.
		$db->setQuery($query);
		$results = $db->loadObjectList();
		foreach($results as $row){
			$domain_register 		= $row -> domain_register;
			$domain_completed 	   = $row -> domain_completed;
			$domain_created 		 = $row -> domain_created;
			$domain_email 		   = $row -> domain_email;
			$domain_name 		    = $row -> domain_name;
			$domain_purchase 		= $row -> domain_purchase;
			$domain_exprires 		= $row -> domain_exprires;
			$domain_manager		 = $row -> domain_manager;
			$domain_username 		= $row -> domain_register;
			$domain_password 		= $row -> domain_password;	
		}
	}
?>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_register" id="jform_domain_domain_register-lbl">Domain Register</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_register;?>" id="jform_domain_domain_register" name="jform[domain][domain_register]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_completed" id="jform_domain_domain_completed-lbl">Domain Completed</label>                                                                
     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_completed;?>" id="jform_domain_domain_completed" name="jform[domain][domain_completed]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_created" id="jform_domain_domain_created-lbl">Domain Created</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_created;?>" id="jform_domain_domain_created" name="jform[domain][domain_created]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_email" id="jform_domain_domain_email-lbl">Domain Email</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_email;?>" id="jform_domain_domain_email" name="jform[domain][domain_email]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_name" id="jform_domain_domain_name-lbl">Domain Name</label>     
     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_name;?>" id="jform_domain_domain_name" name="jform[domain][domain_name]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_purchase" id="jform_domain_domain_purchase-lbl">Domain Purchase</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_purchase;?>" id="jform_domain_domain_purchase" name="jform[domain][domain_purchase]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_exprires" id="jform_domain_domain_exprires-lbl">Domain Exprires</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_exprires;?>" id="jform_domain_domain_exprires" name="jform[domain][domain_exprires]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_manager" id="jform_domain_domain_manager-lbl">Doamn Manager</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_manager;?>" id="jform_domain_domain_manager" name="jform[domain][domain_manager]">     </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_username" id="jform_domain_domain_username-lbl">Domain Username</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_username;?>" id="jform_domain_domain_username" name="jform[domain][domain_username]">      </div>
</div>
<div class="control-group">
     <label title="" class="hasTip control-label" for="jform_domain_domain_password" id="jform_domain_domain_password-lbl">Domain Password</label>     <div class="controls">
     <input type="text" size="30" class="input-xlarge" value="<?php echo @$domain_password;?>" id="jform_domain_domain_password" name="jform[domain][domain_password]">     </div>
</div>						           